function Language(select, def) {
  var langs = [
["Albanian", "sq"], 
["Arabic", "ar"], 
["Bulgarian", "bg"], 
["Catalan", "ca"], 
["Chinese (Simplified)", "zh-CN"], 
["Chinese (Traditional)", "zh-TW"], 
["Croatian", "hr"], 
["Czech", "cs"], 
["Danish", "da"], 
["Dutch", "nl"], 
["English", "en"],
["Estonian", "et"], 
["Filipino", "tl"], 
["Finnish", "fi"], 
["French", "fr"], 
["Galician", "gl"], 
["German", "de"], 
["Greek", "el"], 
["Hebrew", "iw"], 
["Hindi", "hi"], 
["Hungarian", "hu"], 
["Indonesian", "id"], 
["Italian", "it"], 
["Japanese", "ja"], 
["Korean", "ko"], 
["Latvian", "lv"], 
["Lithuanian", "lt"], 
["Maltese", "mt"], 
["Norwegian", "no"], 
["Persian", "fa"], 
["Polish", "pl"], 
["Portuguese", "pt"], 
["Romanian", "ro"], 
["Russian", "ru"], 
["Serbian", "sr"], 
["Slovak", "sk"], 
["Slovenian", "sl"], 
["Spanish", "es"], 
["Swedish", "sv"], 
["Thai", "th"], 
["Turkish", "tr"], 
["Ukrainian", "uk"], 
["Vietnamese", "vi"]];
for (var i = 0; i < langs.length; i++) {
     var v = langs[i];
     select.options[select.options.length] = new Option( v[0], v[1], def == v[1], def == v[1]);
   }

}
